

package com.grj.park.controller;


import com.grj.park.common.R;
import com.grj.park.domain.Recharge;
import com.grj.park.service.RechargeService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequiredArgsConstructor
@RequestMapping("recharge")
public class RechargeController {

    private final RechargeService rechargeService;

    @GetMapping
    public R<List<Recharge>> getRechargeService(){
        return R.ok(rechargeService.list());
    }

}
